<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">

<head>
    <meta charset="UTF-8">
    <title>疾病信息库</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="../static/css/article_list.css" th:href="@{/css/article_list.css}">
    <link rel="stylesheet" href="../static/admin/sweetalert/sweetalert.css" th:href="@{/admin/sweetalert/sweetalert.css}"/>
    <link rel="stylesheet" href="../static/css/public.css" th:href="@{/css/public.css}">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="../static/admin/sweetalert/sweetalert.min.js" th:src="@{/admin/sweetalert/sweetalert.min.js}"></script>
    <link rel="shortcut icon" href="../static/img/logo.png" th:href="@{/img/logo.png}" type="image/x-icon"/>
    <!--    <link href="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.css" rel="stylesheet">-->
    <!--    <script src="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.js"> </script>-->

    <style>

    </style>
</head>
<body>
<!--navbar-->
<div th:replace="public.html::bbsheadnav('article')"></div>

<div class="container-fluid col-md-8 col-md-offset-3">
    <div class="row dkindof" style="margin-top: 20px">
        <div class="col-md-11">
            <d th:each="d_tags : ${diseaseTags}">
                <a class="dbtn dbtnselect" th:if="${selectdiseaseTag}==${d_tags.getId()}"
                   th:text="${d_tags.getName()}">knn凡达
                </a>
                <a class="dbtn" th:unless="${selectdiseaseTag}==${d_tags.getId()}"
                   th:href="@{/article/select_by_tagid/}+${d_tags.getId()}"
                   th:text="${d_tags.getName()}">knn凡达
                </a>
            </d>

            <a th:if="${selectdiseaseTag}==0" class="dbtn dbtnselect">
                全部
            </a>
            <a class="dbtn" th:unless="${selectdiseaseTag}==0" th:href="@{/article/select_by_tagid/0}">
                全部
            </a>


        </div>
    </div>

    <div class="row" id="dparts" style="margin-top: 20px">
        <div class="col-md-10 ditem">
            <div th:each="currart : ${allArts}">
                <a style="text-decoration: none;"
                   th:href="@{'/article/select_by_id/'+${currart.getId()}}">
                    <div class="dartdiv">
                        <div class="dtitle" style="display: inline" th:text="${currart.getTitile()}">抑郁暴食症</div>
                        <span class="ddoctor" th:if="${currart.getUsertype()==2}">医师</span>
                    </div>
                    <div class="row">
                        <div class="col-md-1 artimg">
                            <img src="../static/img/login/female.png" th:src="@{${currart.getImg()}}">
                        </div>
                        <div class="col-md-9 ddescrip" th:text="${currart.getDescription()}">
                            被害妄想症被害妄想症是妄想症中最常见的一种，它是精神疾病的一个重要症状。主要是指患者往往处于恐惧状态而胡乱推理和判断，思维发生障碍，严重的后果是...
                        </div>
                    </div>
                </a>

                <div class="bottombar">
                    <span><a href="" id="username" th:text="${currart.getUsername()}">甲甲子</a></span>
                    <span class="glyphicon glyphicon-thumbs-up" th:onclick="addsupport([[${currart.getId()}]])"><a
                            th:id="support+${currart.getId()}"
                            th:text="${currart.getSupport()}">12</a></span>
                    <span class="glyphicon glyphicon-eye-open" th:text="${currart.getView()}">1234</span>
                    <span class="glyphicon glyphicon-comment" th:text="${currart.getView()}">1234</span>
                    <span class="glyphicon glyphicon-calendar"
                          th:text="${#temporals.format(currart.getDate(), 'yyyy-MM-dd')}">2020-10-20</span>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:replace="public.html::bbsloginform"></div>
</body>
<script th:src="@{/js/snowfall.js}"></script>
<script th:src="@{/js/public.js}"></script>
<script src="../static/js/article_list.js" th:src="@{/js/article_list.js}"></script>
</html>
